<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>Angularjs upload</title>
    <script type="text/javascript" src="./angular.min.js"></script>
    <script type="text/javascript" src="./index.js"></script>

</head>

<body ng-app="app" ng-controller="appCtrl">
    
    <form action="">
        <input type="file" change="angular.element(this).scope().fileSelected(this)">
    </form>

</body>
</html>